﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Microsoft.Phone.UserData;


namespace css
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IService1
    {
        [OperationContract]
        void Setdata(sContact c);

        [OperationContract]
        List<sContact> GetData();

        // TODO: Add your service operations here
    }

    // Use a data contract as illustrated in the sample below to add composite types to service operations
    [DataContract]
    public class sContact
    {

        string _Name = null;
        string _Phno = null;

        [DataMember]
        public string Name
        {
            get { return _Name; }
            set {_Name = value; }
        }

        [DataMember]
        public string Phno
        {
            get { return _Phno; }
            set { _Phno = value; } 
        }
    }
}
